package org.apache.lucene.analysis.kr;

import java.io.Reader;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.kr.ma.Dictionary;


public class KoreanAnalyzer extends Analyzer{
	private Dictionary dic;
	
	public KoreanAnalyzer(Dictionary dic) {
		this.dic = dic;
	}

	public TokenStream tokenStream(String fieldName, Reader reader) {
		return new KoreanTokenizer(reader, dic);
	}
}
